package com.example.protocol.entity.pointtable;

import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

@Component
public class BatteryPointTable {
    public static List<PointInfo> pointTable = null;

    private BatteryPointTable(){
        pointTable = new ArrayList<>();
        pointTable.add(new PointInfo("unsigned short", 2, "chargingState" ,"电池充电状态"));
        pointTable.add(new PointInfo("unsigned short", 2, "chargingVoltage" ,"电池充电电压"));
        pointTable.add(new PointInfo("short", 2, "chargingAmpere" ,"电池充电电流"));
        pointTable.add(new PointInfo("unsigned short", 2, "chargingMachineState" ,"电池充电机状态"));
        pointTable.add(new PointInfo("string", 8, "batteryId" ,"电池编号"));
        pointTable.add(new PointInfo("unsigned short", 2, "inDoorType" ,"柜门内电池类型"));
        pointTable.add(new PointInfo("unsigned short", 2, "doorState" ,"柜门状态"));
        pointTable.add(new PointInfo("short", 2, "doorTemperature" ,"柜门温度"));
        pointTable.add(new PointInfo("unsigned short", 2, "remainingPercentage" ,"剩余电量百分比"));
        pointTable.add(new PointInfo("unsigned short", 2, "remainingCapacity" ,"剩余容量"));
        pointTable.add(new PointInfo("unsigned short", 2, "voltage" ,"电池电压"));
        pointTable.add(new PointInfo("short", 2, "temperature" ,"电芯温度"));
        pointTable.add(new PointInfo("float", 4, "lng" ,"电池经度"));
        pointTable.add(new PointInfo("float", 4, "lat" ,"电池纬度"));
    }
}
